<div>
    <div class="bg-white shadow h-[250px] bg-no-repeat bg-[length:100%_50%] flex flex-col justify-center items-center" style="background-image: url({{ asset('img/home_bg.png') }})">
        <img class="rounded-full" src="{{ asset('img/user_avatar.png') }}" alt="avatar" width="100" height="100">

        <div class="flex items-center gap-1">
            <span class="font-bold text-lg tracking-widest">{{ Auth::user()?->account ?? '游客' }}</span>

            <a wire:navigate href="{{ route('home') }}">
                <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 text-red-500 stroke-2 cursor-pointer">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"/>
                </svg>
            </a>
        </div>

        @guest
            <p class="text-sm text-stone-400 my-4">登录或注册会员即可多设备同步纪录</p>
        @else
            <p class="text-sm text-stone-400 my-4"></p>
        @endguest

        <p class="flex items-center justify-center gap-2">
            @auth
                <a href="#" class="px-10 leading-loose bg-gradient-to-r from-red-500 to-[red] text-white rounded-full">
                    升级VIP
                </a>
                <a wire:navigate href="{{ route('share') }}" class="px-10 leading-loose bg-gradient-to-r from-red-500 to-[red] text-white rounded-full">
                    推广分享
                </a>
            @else
                <a wire:navigate href="{{ route('login') }}" class="px-10 leading-loose bg-gradient-to-r from-red-500 to-[red] text-white rounded-full">
                    登录
                </a>
                <a wire:navigate href="{{ route('register') }}" class="px-10 leading-loose bg-gradient-to-r from-red-500 to-[red] text-white rounded-full">
                    注册
                </a>
            @endauth
        </p>
    </div>

    <div class="flex flex-col gap-2 bg-neutral-100 py-2">
        <div class="bg-neutral-100 grid gap-2 grid-cols-2">
            <div class="flex flex-col justify-center items-center bg-white p-2">
                <span class="text-sm text-stone-400 my-2">邀请人数</span>
                <span class="font-bold text-2xl text-red-600">
                    @auth
                        {{ $share_count = Auth::user()->share->children()->count() }}
                    @else
                        *
                    @endauth
                </span>
            </div>

            <div class="flex flex-col justify-center items-center bg-white p-2">
                <span class="text-sm text-stone-400 my-2">VIP剩余天数</span>
                <span class="font-bold text-2xl text-red-600">*</span>
            </div>
        </div>

        <div class="grid grid-cols-1 divide-y bg-white">
            <div class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon16.png') }}" alt="">
                    深色模式
                </div>

                {{-- <div class="cursor-pointer h-6 w-10 rounded-full p-1 ring-1 ring-inset transition duration-200 ease-in-out bg-slate-900/10 ring-slate-900/5">
                    <div class="h-4 w-4 rounded-full bg-white shadow-sm ring-1 ring-slate-700/10 transition duration-200 ease-in-out"></div>
                </div> --}}
                <div class="mui-switch mui-switch-mini mui-active">
                    <div class="mui-switch-handle"></div>
                </div>
            </div>
        </div>

        <div class="grid grid-cols-1 divide-y bg-white">
            @auth
                <div class="p-3 flex items-center justify-between text-sm">
                    <div class="flex items-center gap-1">
                        <img class="w-6 h-6" src="{{ asset('img/icon1.png') }}" alt="">
                        账号
                    </div>

                    <a wire:navigate href="{{ route('logout') }}" class="px-5 leading-loose bg-gradient-to-r from-red-500 to-[red] text-white rounded-full">
                        退出
                    </a>
                </div>
            @endauth

            <a @auth wire:navigate href="{{ route('share') }}" @else x-on:click.prevent="mui.toast('请先登录')" @endauth
            class="cursor-pointer p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon9.png') }}" alt="">
                    推广分享
                </div>

                <div class="flex items-center text-stone-400">
                    推荐好友注册，VIP送给你！
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon14.png') }}" alt="">
                    卡密兑换
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon13.png') }}" alt="">
                    升级VIP
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon2.png') }}" alt="">
                    绑定帐号
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon3.png') }}" alt="">
                    变更密码
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon15.png') }}" alt="">
                    观看纪录
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon4.png') }}" alt="">
                    历史订单
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>
        </div>


        <div class="grid grid-cols-1 divide-y bg-white">
            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon4.png') }}" alt="">
                    看片福利群
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a href="" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon11.png') }}" alt="">
                    问题建议
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>

            <a wire:navigate href="{{ route('agreement') }}" class="p-3 flex items-center justify-between text-sm">
                <div class="flex items-center gap-1">
                    <img class="w-6 h-6" src="{{ asset('img/icon12.png') }}" alt="">
                    政策条款
                </div>

                <div class="flex items-center text-stone-400">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
                        <path fill-rule="evenodd" d="M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z" clip-rule="evenodd"/>
                    </svg>
                </div>
            </a>
        </div>
    </div>
</div>
